﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MVPSPIKE
{
    public partial class Form1 : Form, IFormMain
    {

        public event Increment eventIncrement = null;
        public event Update eventUpdate = null;
 

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.eventIncrement != null)
            {
                this.eventIncrement();
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        public void update(object sender, IntEventArgs e)
        {
            textBox1.Clear();
            textBox1.Text = e.Val.ToString();
        }


        public void timer1_Tick(object sender, EventArgs e)
        {
        }
    }
}
